/****************************************************
	文件：CommandBase.cs
	作者：HuskyT
	邮箱：1005240602@qq.com
	日期：2020/5/31 16:21:21
	功能：命令基类
*****************************************************/

namespace AIModule.Utility.Example
{
    public abstract class CommandBase
    {
        /// <summary>
        /// 命令接收者（执行者）
        /// </summary>
        protected IReceiver mReceiver;
        /// <summary>
        /// 命令分数
        /// </summary>
        public float Score;

        public CommandBase(IReceiver receiver)
        {
            mReceiver = receiver;
        }
        /// <summary>
        /// 执行命令
        /// </summary>
        public abstract void Execute(BlackboardItem bb);
    }
}